import Vue from 'vue';

import Icon from 'ant-design-vue';

Vue.prototype.msgSuccess = function (title,msg) {
  this.$notification.open({
    message: title,
    description: msg,
    icon: function (h){ return <a-icon type='smile' style='color: #108ee9' />},
    duration: 3,
  });
};

Vue.prototype.msgError = function (title,msg) {
  this.$notification.open({
    message: title,
    description:msg,
    icon: function (h){ return <a-icon type='smile' style='color: #108ee9' />},
    duration: 3,
  });

};


